<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="nice.css" />
<link rel="stylesheet" type="text/css" href="css/default.css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<!-- dd menu -->
<script type="text/javascript">
<!--
var timeout         = 500;
var closetimer		= 0;
var ddmenuitem      = 0;

// open hidden layer
function mopen(id)
{
	// cancel close timer
	mcancelclosetime();

	// close old layer
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';

	// get new layer and show it
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.visibility = 'visible';

}
// close showed layer
function mclose()
{
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime()
{
	closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}
function jsAlert()
{
//	alert('alert alert');
}
// close layer when click-out
document.onclick = mclose;
// -->

//drop down multiple select functions:
  $(document).ready(function() {
    var selected = new Array();

   $('select').mouseover(function() {
      if (this.multiple == true) {
        for (var i=0,a=0;i<this.options.length;i++) {
          if (this.options[i].selected == true) {
            selected[a] = this.options[i].value;
            a++;
          }
        }
      }
    });
 
    // safe them when you click the mouse
    $('select').click(function() {
      // make sure it's a multiple select
      if (this.multiple == true) {
        for(var i=0;i<selected.length;i++) {
          for(var a=0;a<this.options.length;a++){
            if (selected[i] == this.options[a].value && this.options[a].selected == true) {
              this.options[a].selected = false;
              selected.splice(i,1);
            } else if (selected[i] == this.options[a].value) {
              this.options[a].selected = true;
            }
          }
        }
      }
    
      // load all selected options in array when the mouse pointer hovers the select box
      if (this.multiple == true) {
        for (var i=0,a=0;i<this.options.length;i++) {
          if (this.options[i].selected == true) {
            selected[a] = this.options[i].value;
            a++;
          }
        }
      }
    
    });
  });
</script>
<style type="text/css">
<!--

a:link {color: #0000ff;}
a:visited {color: #800080;}
a:active {color: #ff0000;}

body {
  margin: 0;
  height: 100%;
  width: 100%;
  background-color: #ffffff;
}
img {
  border-width: 0;
  vertical-align: top;
}
.dfltt {
  font-family: Verdana;
  font-size: 15px;
  font-weight: normal;
  font-style: normal;
  text-decoration: none;
  text-align: left;
  color: #000000;
}
.lalign {
  position: relative;
  text-align: left;
}
.ralign {
  position: relative;
  text-align: right;
}
.calign {
  position: relative;
  text-align: center;
}
.jalign {
  position: relative;
  text-align: justify;
}
form#Omemberreg {
  visibility: visible;
  margin: 0px;
  font-size: 10px;
}
.dfltf  {
  position: absolute;
  color: #000000;
  font-family: Verdana;
  font-size: 15px;
  font-weight: normal;
  font-style: normal;
  text-decoration: none;
}
#Oobj48 {
	position: absolute;
	font-size: 10px;
	z-index: 33;
	left: 51px;
	top: 169px;
	width: 70.20em;
	height: 31.50em;
}
#Oobj17 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  text-align: left;
  left: 0.50em;
  top: 0.20em;
  width: 21.50em;
  height: 2.10em;
}
.txt0 {font-size: 16px;}
.bold {font-weight: bold;}
#Oobj18 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  text-align: left;
  left: 37.00em;
  top: 0.10em;
  width: 26.20em;
  height: 2.00em;
}
#Oobj15 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 0.40em;
  top: 2.80em;
  width: 16.20em;
  height: 2.00em;
}
#Gform15 {
  width: 100%;
  height: 100%;
}
#Oobj14 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 17.20em;
  top: 2.80em;
  width: 16.20em;
  height: 2.00em;
}
#Gform14 {
  width: 100%;
  height: 100%;
}
#Oobj29 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 36.90em;
  top: 2.90em;
  width: 16.20em;
  height: 2.00em;
}
#Gform26 {
  width: 100%;
  height: 100%;
}
#Oobj27 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 53.70em;
  top: 2.90em;
  width: 16.20em;
  height: 2.00em;
}
#Gform24 {
  width: 100%;
  height: 100%;
}
#Oobj4 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 0.30em;
  top: 5.30em;
  width: 16.20em;
  height: 2.00em;
}
#Gform4 {
  width: 100%;
  height: 100%;
}
#Oobj5 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 17.20em;
  top: 5.30em;
  width: 16.20em;
  height: 2.00em;
}
#Gform5 {
  width: 100%;
  height: 100%;
}
#Oobj22 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 37.00em;
  top: 5.50em;
  width: 16.20em;
  height: 2.00em;
}
#Gform19 {
  width: 100%;
  height: 100%;
}
#Oobj26 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 53.80em;
  top: 5.50em;
  width: 16.20em;
  height: 2.00em;
}
#Gform23 {
  width: 100%;
  height: 100%;
}
#Oobj6 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 0.30em;
  top: 7.80em;
  width: 16.20em;
  height: 2.00em;
}
#Gform6 {
  width: 100%;
  height: 100%;
}
#Oobj7 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 17.20em;
  top: 7.80em;
  width: 16.20em;
  height: 2.00em;
}
#Gform7 {
  width: 100%;
  height: 100%;
}
#Oobj28 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 37.00em;
  top: 8.00em;
  width: 16.20em;
  height: 2.00em;
}
#Gform25 {
  width: 100%;
  height: 100%;
}
#Oobj24 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 53.80em;
  top: 8.00em;
  width: 16.20em;
  height: 2.00em;
}
#Gform21 {
  width: 100%;
  height: 100%;
}
#Oobj8 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 0.40em;
  top: 10.30em;
  width: 6.20em;
  height: 2.00em;
}
#Gform8 {
  width: 100%;
  height: 100%;
}
#Oobj9 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 7.30em;
  top: 10.30em;
  width: 16.20em;
  height: 2.00em;
}
#Gform9 {
  width: 100%;
  height: 100%;
}
#Oobj23 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 37.00em;
  top: 10.50em;
  width: 16.20em;
  height: 2.00em;
}
#Gform20 {
  width: 100%;
  height: 100%;
}
#Oobj25 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 53.80em;
  top: 10.50em;
  width: 16.20em;
  height: 2.00em;
}
#Gform22 {
  width: 100%;
  height: 100%;
}
#Oobj10 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 0.40em;
  top: 14.40em;
  width: 16.20em;
  height: 2.00em;
}
#Gform10 {
  width: 100%;
  height: 100%;
}
#Oobj11 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 17.30em;
  top: 14.30em;
  width: 16.20em;
  height: 2.00em;
}
#Gform11 {
  width: 100%;
  height: 100%;
}
#Oobj37 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  text-align: left;
  left: 36.80em;
  top: 13.60em;
  width: 23.10em;
  height: 2.20em;
}
#Oobj12 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 0.40em;
  top: 16.80em;
  width: 16.20em;
  height: 2.00em;
}
#Gform12 {
  width: 100%;
  height: 100%;
}
#Oobj13 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 17.30em;
  top: 16.80em;
  width: 16.20em;
  height: 2.00em;
}
#Gform13 {
  width: 100%;
  height: 100%;
}
#Oobj34 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 36.90em;
  top: 16.10em;
  width: 11.70em;
  height: 2.00em;
}
#Gform30 {
  width: 100%;
  height: 100%;
}
#Oobj45 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 49.40em;
  top: 16.10em;
  width: 11.70em;
  height: 2.00em;
}
#Gform36 {
  width: 100%;
  height: 100%;
}
#Oobj44 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 36.90em;
  top: 18.80em;
  width: 11.70em;
  height: 2.00em;
}
#Gform34 {
  width: 100%;
  height: 100%;
}
#Oobj46 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 49.50em;
  top: 18.80em;
  width: 11.70em;
  height: 2.00em;
}
#Gform37 {
  width: 100%;
  height: 100%;
}
#Oobj31 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  text-align: left;
  left: 0.20em;
  top: 21.90em;
  width: 27.30em;
  height: 1.90em;
}
.txt1 {font-size: 13px;}
#Oobj43 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 36.90em;
  top: 47.60em;
  width: 10.00em;
  height: 3.00em;
}
#Gform35 {
  width: 100%;
  height: 100%;
}
#Oobj30 { position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 0.20em;
  top: 24.30em;
  width: 16.50em;
  height: 2.20em;
}
#Gform27 {
  width: 100%;
  height: 100%;
}
#Oobj33 { position: absolute;
  font-size: 10px;
  z-index: 33;
  text-align: left;
  left: 36.90em;
  top: 21.90em;
  width: 21.10em;
  height: 2.00em;
}
#Oobj32 {
  position: absolute;
  font-size: 10px;
  z-index: 33;
  left: 36.90em;
  top: 24.30em;
  width: 16.50em;
  height: 2.20em;
}
#Gform29 {
  width: 100%;
  height: 100%;
}
.footer {
position: absolute;
  left: 31.90em;
  top: 74.30em;
	width:218px;
	height:25px;
	padding-left:6px;
	padding-right:6px;
	font-family:Arial, Helvetica, sans-serif;
	font-size:10px;
	color:#677685;
	text-align:center;
	float:left;
}
-->
</style>
</head>
<body class="background" onload="jsAlert()">
<?php
//phptop
function getServices()
{
echo 'in getServices';
	return $_POST['service'];	
}
?>
<div class="container" id="bg">
<div class="logo">
	<img alt="" src="images/logo.png" width="202" height="91" /></div>
<div class="limo"></div>
<ul id="sddm">
	<li><a href="default.htm" onmouseover="mopen('m1')" onmouseout="mclosetime()">Home</a>
		<div id="m1" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
		</div>
	</li>
	<li><a href="about.htm" onmouseover="mopen('m2')" onmouseout="mclosetime()">About Us</a>
		<div id="m2" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
		</div>
	</li>
	<li style="width: 88px"><a href="instructions.htm" onmouseover="mopen('m3')" onmouseout="mclosetime()">Information</a>
		<div id="m3" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
		<a href="instructions.htm">Instructions</a>
		<a href="faqs.htm">FAQ's</a>
		</div>
	</li>
	<li><a href="visitors.htm" onmouseover="mopen('m4')" onmouseout="mclosetime()">Visitors</a>
		<div id="m4" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
		<a href="testimonials.htm">Testimonials</a>
		</div>
	</li>
	<li><a href="membership.htm" onmouseover="mopen('m5')" onmouseout="mclosetime()">Members</a>
		<div id="m5" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
		<a href="membership.htm">Become a Member</a>
		<a href="profile.htm">Member Profile</a>
		<a href="diagram.htm">Setup Diagram</a>
		<a href="member_faqs.htm">FAQ's</a>
		<a href="terms.htm">Terms of Service</a>
		</div>
	</li>
	<li><a href="owners.htm" onmouseover="mopen('m6')" onmouseout="mclosetime()">Advertise</a>
		<div id="m5" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
		<a href="owners.htm">Limousine Owners</a>
		<a href="accomodations.htm">Travel Accomodations</a>
		</div>
	</li>
	<li><a href="attractions.htm" onmouseover="mopen('m7')" onmouseout="mclosetime()">Attractions</a>
		<div id="m5" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
		</div>
	</li>
	<li><a href="referral.htm" onmouseover="mopen('m8')" onmouseout="mclosetime()">Refer Us</a>
		<div id="m5" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
		<a href="referral.htm">Tell a Friend</a>
		<a href="links.htm">Links</a>
		<a href="affiliate.htm">Affiliate Program</a>
		</div>
	</li>
	<li>
	<a href="contact.htm" onmouseover="mopen('m8')" onmouseout="mclosetime()" style="width: 74px">Contact Us</a>
		<div id="m5" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
		</div>
	</li>

</ul>
<div style="clear:both">
  <div class="main_content">
<div id="Oobj48">
<div id="Oobj17">
<div id="Grtf32" class="dfltt">
<span class ="txt0"><span class ="bold">Company information</span><br>
</span></div>
</div>

<div id="Oobj18">
<div id="Grtf33" class="dfltt">
<span class ="txt0"><span class ="bold">Which airports do you serve?</span><br>
</span></div>
</div>

<form action="#" method="post">
<div id="Oobj15"><input type="text" id="Gform15" class="dfltf" name="company" value="Company">
</div><div id="Oobj14"><input type="text" id="Gform14" class="dfltf" name="web" value="Web Address">
</div><div id="Oobj4"><input type="text" id="Gform4" class="dfltf" name="first" value="First Name">
</div><div id="Oobj5"><input type="text" id="Gform5" class="dfltf" name="last" value="Last Name">
</div><div id="Oobj6"><input type="text" id="Gform6" class="dfltf" name="address" value="Address">
</div><div id="Oobj7"><input type="text" id="Gform7" class="dfltf" name="city" value="City">
</div><div id="Oobj8"><input type="text" id="Gform8" class="dfltf" name="state" value="State">
</div><div id="Oobj9"><input type="text" id="Gform9" class="dfltf" name="zip" value="Zip code">
</div><div id="Oobj10"><input type="text" id="Gform10" class="dfltf" name="officenum" value="Office Number">
</div><div id="Oobj11"><input type="text" id="Gform11" class="dfltf" name="tollfree" value="Toll free Number">
</div><div id="Oobj12"><input type="text" id="Gform12" class="dfltf" name="fax" value="Fax">
</div><div id="Oobj13"><input type="text" id="Gform13" class="dfltf" name="email" value="Email">
</div>
<div id="Oobj30"><select class="dfltf" name='service[]' size="13" multiple="multiple">
<option value="airtrans" <?php isServiceSelected('airtrans'); ?>> Airport Service</option>
<option value="wedding" <?php isServiceSelected('wedding'); ?>> Weddings</option>
<option value="prom" <?php isServiceSelected('prom'); ?>> Prom</option>
<option value="bachelor" <?php isServiceSelected('bachelor'); ?>> Bachelor(ette) Party</option>
<option value="anniversaries" <?php isServiceSelected('anniversaries'); ?>> Anniversaries</option>
<option value="pt2pt" <?php isServiceSelected('pt2pt'); ?>> Point 2 Point</option>
<option value="birthday" <?php isServiceSelected('birthday'); ?>> Birthday Parties</option>
<option value="concert" <?php isServiceSelected('concert'); ?>> Concerts</option>
<option value="grads" <?php isServiceSelected('grads'); ?>> Graduation</option>
<option value="sports" <?php isServiceSelected('sports'); ?>> Sports Events</option>
<option value="holiday" <?php isServiceSelected('holiday'); ?>> Holiday Light Tours</option>
<option value="nightout"<?php isServiceSelected('nightout'); ?>> Night on the Town</option>
<option value="other" <?php isServiceSelected('other'); ?>> Other</option>
</select>
</div>

><div id="Oobj32"><select class="dfltf" name="fleet[]" size="12" multiple="multiple">
<option value="sedan" <?php isFleetSelected('sedan'); ?>> Sedan</option>
<option value="limo" <?php isFleetSelected('limo'); ?>> Limosuine</option>
<option value="stretchlimo" <?php isFleetSelected('stretchlimo'); ?>> Stretch Limo</option>
<option value="van" <?php isFleetSelected('van'); ?>> Van</option>
<option value="paratrans" <?php isFleetSelected('paratrans'); ?>> Paratransit Van</option>
<option value="handicap" <?php isFleetSelected('handicap'); ?>> Handicap Access</option>
<option value="suv" <?php isFleetSelected('suv'); ?>> S.U.V.</option>
<option value="minibus" <?php isFleetSelected('minibus'); ?>> Mini bus</option>
<option value="antique" <?php isFleetSelected('antique'); ?>> Antique Vehicles</option>
<option value="rolls" <?php isFleetSelected('rolls'); ?>> Rolls Royce</option>
<option value="bus620" <?php isFleetSelected('bus620'); ?>> Party Bus 6-20</option>
<option value="bus20up" <?php isFleetSelected('bus20up'); ?>> Party Bus 20+</option>
</select></div>

<div id="Oobj29"><input type="text" id="Gform26" class="dfltf" name="airport1" value="1st airport">
</div><div id="Oobj27"><input type="text" id="Gform24" class="dfltf" name="airport5" value="5th airport">
</div><div id="Oobj22"><input type="text" id="Gform19" class="dfltf" name="airport2" value="2nd airport">
</div><div id="Oobj26"><input type="text" id="Gform23" class="dfltf" name="airport6" value="6th airport">
</div><div id="Oobj28"><input type="text" id="Gform25" class="dfltf" name="airport3" value="3rd airport">
</div><div id="Oobj24"><input type="text" id="Gform21" class="dfltf" name="airport7" value="7th airport">
</div><div id="Oobj23"><input type="text" id="Gform20" class="dfltf" name="airport4" value="4th airport">
</div><div id="Oobj25"><input type="text" id="Gform22" class="dfltf" name="airport8" value="8th airport">
</div><div id="Oobj34"><input type="text" id="Gform30" class="dfltf" name="targetzip1" value="Target Zipcode">
</div><div id="Oobj45"><input type="text" id="Gform36" class="dfltf" name="targetzip2" value="Target Zipcode">
</div><div id="Oobj44"><input type="text" id="Gform34" class="dfltf" name="targetzip3" value="Target Zipcode">
</div><div id="Oobj46"><input type="text" id="Gform37" class="dfltf" name="targetzip4" value="Target Zipcode">
</div><div id="Oobj43"><input type="submit" class="dfltf" name="submit" value="Submit">
</div></form>

<div id="Oobj37">
<div id="Grtf76" class="dfltt">
<span class ="txt0"><span class ="bold">What is your target area?</span><br>
</span></div>
</div>

<div id="Oobj31">
<div id="Grtf57" class="dfltt">
<span class ="txt0"><span class ="bold">Your services</span></span><span class ="txt1"> (select all that apply)<br>
</span></div>
</div>

<div id="Oobj33">
<div id="Grtf70" class="dfltt">
<span class ="txt0"><span class ="bold">FLEET </span></span><span class ="txt1">(select all that apply)<br>
</span></div>
</div>

</div>


   </div></div>  <div class="footer">&copy;<script language='Javascript'>
now = new Date();
year = now.getYear();
if(year < 100) { year = year + 2000; } else { if(year >= 100 && year < 2000) { year = year + 1900; } }
document.write(" " + year + " ");
</script> - Nice Airport Transportation</div></div>


</div>
<?php
echo 'start';
@$service=$_POST['service'];

if(is_array($service))
{
	while (list ($key, $val) = each($service))
	{
		echo "key: $key <br>val: $val <br>";
	}
}
else{echo $service;}
echo $service;
/*
$service=$_POST['service'];
if ($service)
{
    echo date(); 
    foreach($service as $srv)
        echo $srv;
}*/
echo 'here';
?>
<?php
function isServiceSelected($option)
{
	//echo '<br> iss - ' . $option . '<br>';
	@$service=$_POST['service'];
	if(is_array($service))
	{
		while (list ($key, $val) = each($service))
		{
			if ($val == $option) echo 'selected';
		}
	}	
}

function isServiceSelectedYN($option)
{
	//echo '<br> iss - ' . $option . '<br>';
	@$service=$_POST['service'];
	if(is_array($service))
	{
		$retval = 'N';
		while (list ($key, $val) = each($service))
		{
			if ($val == $option) $retval = 'Y';
			echo '<br>$val' . $val . ' $option' . $option . ' $retval ' . $retval . '<br>';
		}		
	}
	echo "<h2>$retval</h2>";
	return $retval;
} 
function isFleetSelected($option)
{
	@$fleet=$_POST['fleet'];
	if(is_array($fleet))
	{
		while (list ($key, $val) = each($fleet))
		{
			if ($val == $option) echo 'selected';
		}
	}	
}
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
//test
echo '<br> is array:' . is_array($_POST['service']) . ' - count: ' . count($_POST['service']) . '<br>';
$id = 1;
$c = $_POST['service'];
echo '<br>' . $c[0] . ' --- ' . $c[1] . '<br>';

//endtest
	echo '<br> postback';
	$company = isTextSet('company','Company');
	$website = isTextSet('web','Web Address');
	$firstname = isTextSet('first','Web Address');
	$lastname = isTextSet('last','Last Name');
	$address = isTextSet('address','Address');
	$city = isTextSet('city','City');
	$state = isTextSet('state','State');
	$zip = isTextSet('zip','Zip code');
	$officenum = isTextSet('officenum','Office Number');	
	$tollfree = isTextSet('tollfree','Toll free Number');
	$fax = isTextSet('fax','Fax');
	$email = isTextSet('email','Email');	
	$airport1 = isTextSet('airport1','1st airport');	
	$airport2 = isTextSet('airport2','2nd airport');
	$airport3 = isTextSet('airport3','3rd airport');
	$airport4 = isTextSet('airport4','4th airport');
	$airport5 = isTextSet('airport5','5th airport');	
	$airport6 = isTextSet('airport6','6th airport');
	$airport7 = isTextSet('airport7','7th airport');
	$airport8 = isTextSet('airport8','8th airport');
	$targetzip1 = isTextSet('targetzip1','Target Zipcode');	
	$targetzip2 = isTextSet('targetzip2','Target Zipcode');
	$targetzip3 = isTextSet('targetzip3','Target Zipcode');
	$targetzip4 = isTextSet('targetzip4','Target Zipcode');	
	echo '<h2>abc' . isServiceSelected('airtrans') . 'abc </h2>';
	$airtrans = 'N';
	if (isServiceSelected('airtrans') == 'selected') $airtrans = 'Y';
	$wedding = (isServiceSelected('wedding') == 'selected') ? 'Y' : 'N';
	echo '<br>after wedding<br>';
	$prom = isServiceSelectedYN('prom');
	echo "<h2>prom: $prom</h2>";//testcode
	echo 'hello';
	$bachelor = isServiceSelected('bachelor') == 'selected' ? 'Y' : 'N';
	$anniversaries = isServiceSelected('anniversaries') == 'selected' ? 'Y' : 'N';
	$pt2pt = isServiceSelected('pt2pt') == 'selected' ? 'Y' : 'N';
	$birthday = isServiceSelected('birthday') == 'selected' ? 'Y' : 'N';
	$concert = isServiceSelected('concert') == 'selected' ? 'Y' : 'N';
	$grads = isServiceSelected('grads') == 'selected' ? 'Y' : 'N';
	$sports = isServiceSelected('sports') == 'selected' ? 'Y' : 'N';
	$holiday = isServiceSelected('holiday') == 'selected' ? 'Y' : 'N';
	$nightout = isServiceSelected('nightout') == 'selected' ? 'Y' : 'N';
	$other = isServiceSelected('other') == 'selected' ? 'Y' : 'N';	
	$sedan = isServiceSelected('sedan') == 'selected' ? 'Y' : 'N';	
	$limo = isServiceSelected('limo') == 'selected' ? 'Y' : 'N';	
	$stretchlimo = isServiceSelected('stretchlimo') == 'selected' ? 'Y' : 'N';	
	$van = isServiceSelected('van') == 'selected' ? 'Y' : 'N';	
	$paratrans = isServiceSelected('paratrans') == 'selected' ? 'Y' : 'N';	
	$handicap = isServiceSelected('handicap') == 'selected' ? 'Y' : 'N';	
	$suv = isServiceSelected('suv') == 'selected' ? 'Y' : 'N';	
	$minibus = isServiceSelected('minibus') == 'selected' ? 'Y' : 'N';	
	$antique = isServiceSelected('antique') == 'selected' ? 'Y' : 'N';	
	$rolls = isServiceSelected('rolls') == 'selected' ? 'Y' : 'N';	
	$bus620 = isServiceSelected('bus620') == 'selected' ? 'Y' : 'N';	
	$bus20up = isServllllliceSelected('bus20up') == 'selected' ? 'Y' : 'N';	
	
	//testcodellllllllllllll
	$del = "delete from companies where id=1";
	//endtestcode
	echo $del;
	$sql = "insert into companies (
	id,
	name,
	website,
	first_name,
	last_name,
	address,
	city,
	state,
	zip,
	office_phone_number,
	toll_free_number,
	fax_number,
	email,
	airport_one,
	airport_two,
	airport_three,
	airport_four,
	airport_five,	
	airport_six,
	airport_seven,
	airport_eight,	
	target_area_one,
	target_area_two,
	target_area_three,
	target_area_four,
	dt_changed,
	airtrans,	
	weddings,
	prom,
	bachelor_party,
	anniversaries,
	point2point,
	birthday_party,
	concert,
	graduation,
	sport_event,
	holiday_lights_tour,
	night_on_the_town,
	other,
	sedan,
	limo,
	strech_limo,
	van,
	paratrans_van,
	handicap_access,
	suv,
	minibus,
	antique_vehicle,
	rolls_royce,
	partybus_620,
	partybus_20plus) values (
	'$id',
	'$company',
	'$website',
	'$firstname',
	'$lastname',
	'$address',
	'$city',
	'$state',
	'$zip',
	'$officenum',
	'$tollfree',
	'$fax',
	'$email',
	'$airport1',
	'$airport2',
	'$airport3',
	'$airport4',
	'$airport5',
	'$airport6',
	'$airport7',
	'$airport8',	
	'$targetzip1',
	'$targetzip2',
	'$targetzip3',
	'$targetzip4',
	'Now()',
	'$airtrans',
	'$wedding',
	'$prom',
	'$bachelor',
	'$anniversaries',
	'$pt2pt',
	'$birthday',
	'$concert',
	'$grads',
	'$sports',
	'$holiday',
	'$nightout',
	'$other',
	'$sedan',
	'$limo',
	'$stretchlimo',
	'$van',
	'$paratrans',
	'$handicap',
	'$suv',
	'$minibus',
	'$antique',
	'$rolls',
	'$bus620',
	'$bus20up')";
	echo '<h2>here</h2>';
	insertData($del . $sql);

echo '<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>';
//phpinfo();
}
else
{
	echo '<br> not postback';
}
function isTextSet($control,$label)
{
	$field = '';
	$field = $_POST[$control];
	if ($field)
		if ($field == $label)
			$field = '';
	return $field;
}
function insertData($sql)
{
echo '<h2>test</h2>';
		$con = mysql_connect('cocoagood16.ipowermysql.com','nicedb','nicedbpa55w0rd');
		if (!$con)
		{
			die('Could not connect: ' . mysql_error());
		}
		echo 'about to insert';
		mysql_select_db("niceairport", $con);
echo '<br>' . $sql . '<br>';
		// Execute query
		mysql_query($sql,$con);

		mysql_close($con);
		echo 'inserted records';
}
?>

</body>

</html>
